 begintalkscript;

 variables;

		///***Leamon***///

 begintalknode 1;
	state = -1;
	nextstate = 2;
	question = "Leamon";
	text1 = "A very dizzy looking soldier is sitting in the corner. When he notices you approaching, he immediately shouts. _Take one step closer undead-scum and I'll cut ye in half!_ His threat would be more convincing, if he had a weapon.";
	text5 = "The soldier is swaying back and forth.";
	action = INTRO;

 begintalknode 2;
	state = 2;
	nextstate = -1;
	question = "We're not undead.";
	text1 = "_Ye're not? Really?_ He squints his eyes in an effort to focus on your faces. _Ow! My eyes hurt._";

 begintalknode 3;
	state = 2;
	nextstate = 3;
	question = "Have you been drinking?";
	text1 = "_Sure! Healing potions mostly, a couple of elixirs and a bliss elixir._";

 begintalknode 4;
	state = 3;
	nextstate = -1;
	question = "Alright then, when was the last time you slept?";
	text1 = "_Can't sleep! The undead'll get me. I might have dozed off two days ago, but that was the only time. I've been up and alert._";

 begintalknode 5;
	state = 2;
	nextstate = 4;
	question = "Tell me what happened to you, and what happened to this town.";
	text1 = "_What happened to me? I was sent on a very important mission from Sattle, to get reinforcements. I was sent 'cause I'm the fastest, ye know. Just a moment after I arrived, it happened._ The soldier waves his hands dramatically.";
	text2 = "_I heard a huge explosion coming from the north wall. I was by the barracks, and there were still chunks of rock that flew across me. I rushed to the gates with the other soldiers, to face whatever we'd find._";
	text3 = "_It was... horrible. We fought bravely, as bravely as we could. I got hit on the side pretty badly, so I retreated to this alchemist's shop. In here I drank as many healing potions I could find._";
	text4 = "_That didn't help stop the bleeding, but it kept me alive._";

 begintalknode 6;
	state = 4;
	nextstate = -1;
	condition = get_flag(2,4) == 1;
	question = "You were sent from Sattle? Are you Leamon?";
	text1 = "The soldier nods. _Say, how do ye know my name?_ Leamon snaps his fingers. _The captain must have sent you!_";

 begintalknode 7;
	state = 4;
	nextstate = -1;
	question = "You should probably head for Sattle. Think you could manage the trip?";
	text1 = "The soldier shakes his head ferociously. _No! I was ordered by the captain of Sattle to come here. Those are my orders. A good soldier follows his orders._";
	text2 = "The soldier's obviously not thinking straight. Still, convincing him to budge yields no success.";
	text3 = "_Yes I can! If the captain tells me to go, I go. Even if I have to crawl._ Luckily he doesn't have to crawl, he gets up and heads for the door.";
	action = END_TALK;
	code = if (get_flag(2,4) == 1) {
			erase_char(6);
			set_flag(2,4,2);
			remove_string(1);
			remove_string(2);
			set_flag(6,12,1);
}
		else {
			remove_string(3);
}

break;

 begintalknode 8;
	state = 4;
	nextstate = -1;
	question = "What did you face? The undead?";
	text1 = "_It was ... horrible._ The soldier is staring blankly ahead. He is either shocked from the battle, or just delirious from the healing potions. Either way, you're not getting any information about the attackers.";

		///***Ghost***///

 begintalknode 10;
	state = -1;
	nextstate = 11;
	question = "Ghost";
	text1 = "A spirit of a dead woman stands in this room. Her image is dim.";

 begintalknode 11;
	state = 11;
	nextstate = 12;
	question = "Why are you here spirit?";
	text1 = "_I wait, wait for the inevitable. My twin brother, I cannot find him._";

 begintalknode 12;
	state = 12;
	nextstate = -1;
	question = "You wait for what?";
	text1 = "_For my brother to join me._";
	code = inc_flag(6,7,1);
 break;

 begintalknode 13;
	state = 12;
	nextstate = -1;
	question = "Who is your brother?";
	text1 = "_A soldier sent from Sattle. WhErE iS He!? I SAw hIM WOuNDed!_";
	code = inc_flag(6,7,1);
 break;

 begintalknode 14;
	state = 12;
	nextstate = -1;
	condition = get_flag(6,7) == 2;
	question = "If you knew where your brother is, could you continue to death's realm?";
	text1 = "_No! I know he is in danger while he remains here. THe sPiRIt! ThE inFerNAl BeASt! They threaten his life. If they were gone, he'd be safe._";

 begintalknode 15;
	state = 11;
	nextstate = -1;
	condition = (get_flag(6,8) != 0 && get_flag(6,9) != 0);
	question = "I slew the demon and defeated the spirit. Your brother should be safe now.";
	text1 = "The spirit speaks, now with a sense of relief. _Yes. He is safe. He will not enter death's kingdom now. I can leave and wait for him there. Thank you!_ The spirit slowly fades away.";
	action = END_TALK;
	code = award_party_xp(75,30);
		erase_char(7);
		set_flag(6,13,2);
 break;

 begintalknode 16;
	state = 11;
	nextstate = -1;
	condition = ((get_flag(2,4) >= 2) && ((get_flag(6,8) == 0) || (get_flag(6,9) == 0)));
	question = "Your brother has left the city, he is safe.";
	text1 = "_NO! ThE bEaST! THe SpiRit! ThEY thREAten hIM! HE iSN't sAFe!_";
	